package com.example.lianjuan.Utils;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class RetrofitManang {
    private static final RetrofitManang retrofitManang = new RetrofitManang();
    private final Retrofit mRetrofit;

    public static RetrofitManang getRetrofitManang() {
        return retrofitManang;
    }

    public RetrofitManang() {
        mRetrofit = new Retrofit.Builder()
                .baseUrl(Constants.BASE_URL)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    public Retrofit getRetrofit() {
        return mRetrofit;
    }
}
